package cn.dubito.seller.sign;

import cn.dubito.util.JsonUtil;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;

/**
 * @author liliang
 * @description: 验签明文
 * @date 2018/5/29.
 */
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonPropertyOrder(alphabetic = true)
public interface SignText {

    /**
     * 返回 json格式
     * @return
     */
    default String toText() {
        return JsonUtil.toJson(this);
    }
}
